package com.demo.gateway.fallback;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

@RestController
public class FallbackController {

    /**
     * 全局熔断降级接口
     */
    @GetMapping("/fallback")
    public Mono<String> fallback() {
        return Mono.just("{\"code\":503,\"message\":\"服务繁忙，请稍后再试\"}");
    }
}